package com.song.util;

import java.util.List;

public class PageUtils {
    private Integer index;
    private Integer totalPages;
    private Integer total;
    private Integer pagesize = 3;
    private List list;


    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public Integer getTotalPages() {
        return total % pagesize > 0 ? total / pagesize + 1 : total / pagesize;
    }

    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPagesize() {
        return pagesize;
    }

    public void setPagesize(Integer pagesize) {
        this.pagesize = pagesize;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }
}
